Method and terminal for displaying distance information in virtual scene

ABSTRACT

This disclosure relates to a distance information display method in a virtual scene and a terminal. The method includes: obtaining location information of a target location point in the virtual scene; obtaining distance information according to the location information of the target location point; and displaying the distance information corresponding to an indication icon of the target location point in a scene picture of the virtual scene. According to the foregoing solution, in a virtual scene, for a target location point at which an indication icon exists in a scene picture of the virtual scene, the terminal may display information about a distance between a current controlled object and the target location point corresponding to the indication icon in the scene picture of the virtual scene.

RELATED APPLICATION

This application is a continuation application of PCT Patent ApplicationNo. PCT/CN2019/078742, filed on Mar. 19, 2019, which claims priority toChinese Patent Application No. 201810392855.1, filed on Apr. 27, 2018and entitled “DISTANCE INFORMATION DISPLAY METHOD IN VIRTUAL SCENE,APPARATUS AND COMPUTER DEVICE”, wherein the entirety of each of theabove-referenced applications is incorporated herein by reference in itsentirety.

FIELD OF THE TECHNOLOGY

This application relates to the field of computer applicationtechnologies, and in particular, to a distance information displaymethod in a virtual scene, a terminal, and a computer device.

BACKGROUND OF THE DISCLOSURE

A user has a requirement for obtaining a distance between a currentcontrolled object and a target point in many application programs (forexample, a virtual reality application program, a three-dimensional mapprogram, a military simulation program, a first-person shooting game,and a multiplayer online battle arena game) constructing a virtualscene.

In the related art, the application program constructing a virtual scenemay indicate, by using a map, a distance between virtual objectscontrolled by two users. For example, in one virtual scene, in a casethat two or more users team up, when one of the users needs to know adistance between a current controlled object and a virtual objectcontrolled by a teammate, the user may open a map interface, and thedistance between the virtual object controlled by the teammate and thecurrent controlled object of the user is displayed in the map interface.

However, in the related art, the user needs to open the map interface toview the distance between the virtual object controlled by the teammateand the current controlled object of the user. The foregoing operationof opening a map needs to consume a specific operating time, andinevitably affects another operation of the user in the virtual scene,causing a relatively poor display effect of the distance information.

SUMMARY

Embodiments of this disclosure provide a distance information displaymethod in a virtual scene, a terminal, and a computer device, to resolvethe problem in the related art that the user needs to open a mapinterface to view a distance between a virtual object controlled by ateammate and a current controlled object of the user, which needs toconsume a specific operating time, and inevitably affects anotheroperation of the user in the virtual scene, causing a relatively poordisplay effect of the distance information, so that the display effectof the distance information is improved. The technical solutions are asfollows:

According to an aspect, a distance information display method in avirtual scene is provided, performed by a terminal, and including:

obtaining location information of a target location point in the virtualscene, the target location point comprising a location point at which anindication icon exists in a scene picture of the virtual scene, and thescene picture being a picture of the virtual scene viewed from a viewingangle of a current controlled object;

obtaining distance information according to the location information ofthe target location point, the distance information indicating adistance between the target location point and the current controlledobject; and

displaying the distance information corresponding to the indication iconof the target location point in the scene picture of the virtual scene.

According to an aspect, a distance information display terminal in avirtual scene is provided, including a memory operable to store programcode and a processor operable to read the program code. The processormay be configured to:

obtain location information of a target location point in the virtualscene, the target location point comprising a location point at which anindication icon exists in a scene picture of the virtual scene, and thescene picture being a picture of the virtual scene viewed from a viewingangle of a current controlled object;

obtain distance information according to the location information of thetarget location point, the distance information being indicating adistance between the target location point and the current controlledobject; and

display the distance information corresponding to the indication icon ofthe target location point in the scene picture of the virtual scene.

Optionally, the processor may be further configured to:

obtain a target size of the indication icon of the target location pointaccording to the distance information; and

adjust a size of the indication icon of the target location point to thetarget size.

Optionally, the processor may be configured to, in response to adistance display condition being met, display the distance informationcorresponding to the indication icon of the target location point in thescene picture of the virtual scene,

the distance display condition may include at least one of:

the current controlled object being located in a second specified regionin the virtual scene;

the distance between the target location point and the currentcontrolled object being greater than a distance threshold;

the target location point being located within a viewing angle range infront of the current controlled object; or

the target location point being located outside the scene picture of thevirtual scene.

According to another aspect, a product is provided, includingmachine-readable media other than a transitory signal and instructionsstored on the machine-readable media. The instructions may be configuredto, when executed, cause a machine to:

obtain location information of a target location point in the virtualscene, the target location point comprising a location point at which anindication icon exists in a scene picture of the virtual scene, and thescene picture being a picture of the virtual scene viewed from a viewingangle of a current controlled object;

obtain distance information according to the location information of thetarget location point, the distance information indicating a distancebetween the target location point and the current controlled object; and

display the distance information corresponding to the indication icon ofthe target location point in the scene picture of the virtual scene.

According to another aspect, a computer device is provided, including aprocessor and a memory, the memory storing at least one instruction, atleast one program, a code set or an instruction set, and the at leastone instruction, the at least one program, the code set or theinstruction set being loaded and executed by the processor to implementthe foregoing distance information display method in a virtual scene.

According to still another aspect, a computer-readable storage medium isprovided, storing at least one instruction, at least one program, a codeset or an instruction set, the at least one instruction, the at leastone program, the code set or the instruction set being loaded andexecuted by a processor to implement the foregoing distance informationdisplay method in a virtual scene.

The technical solutions provided in this disclosure may have thefollowing advantageous effects:

In a virtual scene, for a target location point at which an indicationicon exists in a scene picture of the virtual scene, the terminal maydisplay information about a distance between a current controlled objectand the target location point corresponding to the indication icon inthe scene picture of the virtual scene. In this way, the user does notneed to open a map of the virtual scene, so that the display of thedistance information is more direct without affecting another operationof the user in the virtual scene, thereby improving the display effectof the distance information.

It is to be understood that the above general descriptions and thefollowing detailed descriptions are merely for exemplary and explanatorypurposes, and cannot limit this disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings herein are included in the specification andform a part of the specification, show embodiments that conform to thisdisclosure, and are used to describe a principle of this disclosuretogether with the specification.

FIG. 1 is a schematic structural diagram of a terminal according to anexemplary embodiment.

FIG. 2 is a schematic diagram of a scene picture of a virtual sceneaccording to an exemplary embodiment.

FIG. 3 is a schematic diagram of a distance information display processin a virtual scene according to an exemplary embodiment.

FIG. 4 is a schematic diagram of a type of display of distanceinformation involved in the embodiment shown in FIG. 3.

FIG. 5 is a schematic diagram of another type of display of distanceinformation involved in the embodiment shown in FIG. 3.

FIG. 6 is a flowchart of a distance information display method in avirtual scene according to an exemplary embodiment.

FIG. 7 is a schematic diagram of a type of display of distanceinformation involved in the embodiment shown in FIG. 6.

FIG. 8 is a schematic diagram of another type of display of distanceinformation involved in the embodiment shown in FIG. 6.

FIG. 9 is a schematic diagram of a type of display of an indication iconinvolved in the embodiment shown in FIG. 6.

FIG. 10 is a flowchart of displaying a distance to a teammate controlledobject according to an exemplary embodiment.

FIG. 11 is a schematic diagram of a type of display of a distance to ateammate involved in the embodiment shown in FIG. 10.

FIG. 12 is a flowchart of displaying a distance to a safe zone accordingto an exemplary embodiment.

FIG. 13 is a schematic diagram of a type of display of a distance to asafe zone involved in the embodiment shown in FIG. 12.

FIG. 14 is a flowchart of displaying a distance to a marked locationpoint according to an exemplary embodiment.

FIG. 15 is a schematic diagram of a type of display of a distance to amarked location point involved in the embodiment shown in FIG. 14.

FIG. 16 is a flowchart of displaying a distance to a marked locationpoint according to an exemplary embodiment.

FIG. 17 is a schematic diagram of a type of display of a distance to amarked location point involved in the embodiment shown in FIG. 16.

FIG. 18 is a structural block diagram of a terminal according to anexemplary embodiment.

FIG. 19 is a structural block diagram of a computer device according toan exemplary embodiment.

DESCRIPTION OF EMBODIMENTS

Exemplary embodiments are described in detail herein, and examplesthereof are shown in the accompanying drawings. When the followingdescriptions are made with reference to the accompanying drawings,unless indicated otherwise, same numbers in different accompanyingdrawings represent same or similar elements. The followingimplementations described in the following exemplary embodiments do notrepresent all implementations that are consistent with this disclosure.On the contrary, the implementations are merely examples of physicaldevices and methods that are described in detail in the appended claimsand that are consistent with some aspects of this disclosure.

Virtual scene: a virtual scene displayed (or provided) when anapplication program is run on a terminal. The virtual scene may be asimulated environment scene of a real world, or may be a semi-simulatedsemi-fictional three-dimensional environment scene, or may be anentirely fictional three-dimensional environment scene. The virtualscene may be any one of a two-dimensional virtual scene, a2.5-dimensional virtual scene, and a three-dimensional virtual scene,and description is made by using an example in which the virtual sceneis a three-dimensional virtual scene in the following embodiments, butthis is not limited. Optionally, the virtual scene is further used for avirtual scene battle between at least two virtual roles. Optionally, thevirtual scene is further used for a battle between at least two virtualroles by using virtual guns. Optionally, the virtual scene is furtherused for a battle between at least two virtual roles by using virtualguns in a range of a target region, and the range of the target regionmay be continuously decreased as time goes by in the virtual scene.

Virtual object: a movable object in a virtual scene. The movable objectmay be at least one of a virtual character, a virtual animal, and acartoon character. Optionally, in a case that the virtual scene is athree-dimensional virtual environment, the virtual object is athree-dimensional model created based on a skeletal animationtechnology. Each virtual object has a shape and a volume in thethree-dimensional virtual scene, and occupies some space in thethree-dimensional virtual scene.

The virtual scene is generally generated by an application program in aterminal such as a computer device and presented based on hardware (forexample, a screen) in the terminal. The terminal may be a mobileterminal such as a smartphone, a tablet computer, or an e-book reader.Alternatively, the terminal may be a personal computer device such as anotebook computer or a fixed computer.

FIG. 1 shows a schematic structural diagram of a terminal according toan exemplary embodiment. As shown in FIG. 1, the terminal includes amainboard 110, an external output/input device 120, a memory 130, anexternal interface 140, a capacitive touch system 150, and a powersupply 160.

Processing elements such as a processor and a controller are integratedin the mainboard 110.

The external output/input device 120 may include a display component(for example, a display screen), a sound playback component (forexample, a loudspeaker), a sound collecting component (for example, amicrophone), and various types of buttons.

The memory 130 stores program code and data.

The external interface 140 may include an earphone interface, a charginginterface, and a data interface.

The capacitive touch system 150 may be integrated in the displaycomponent or a button of the external output/input device 120, and thecapacitive touch system 150 is configured to detect a touch operationperformed by the user on the display component or the button.

The power supply 160 is configured to supply power to other componentsin the terminal.

In an embodiment, the processor in the mainboard 110 may generate avirtual scene by executing or invoking program code and data stored inthe memory, and present the generated virtual scene by using theexternal output/input device 120. In a process of presenting the virtualscene, a touch operation performed when the user interacts with thevirtual scene may be detected by using the capacitive touch system 150.

The virtual scene may be a three-dimensional virtual scene, or thevirtual scene may be a two-dimensional virtual scene. Using an examplein which the virtual scene is a three-dimensional virtual scene, FIG. 2shows a schematic diagram of a scene picture of a virtual sceneaccording to an exemplary embodiment. As shown in FIG. 2, a scenepicture 200 of the virtual scene includes a virtual object 210, anenvironment picture 220 of the three-dimensional virtual scene, at leastone set of virtual control button 230, and a virtual object 240. Thevirtual object 210 may be a current controlled object of a usercorresponding to a terminal, and the virtual control button 230 is anoptional control element, that is, the user may control the virtualobject 210 by using the virtual control button 230. The virtual object210 may be a non-user controlled object, that is, the virtual object 240is autonomously controlled by an application program, or the virtualobject 240 may be a virtual object controlled by a user corresponding toanother terminal. The user may control the virtual object 210 tointeract with the virtual object 240, for example, control the virtualobject 210 to attack the virtual object 240.

In FIG. 2, the virtual object 210 and the virtual object 240 arethree-dimensional models in the three-dimensional virtual scene, and theenvironment picture of the three-dimensional virtual scene displayed inthe scene picture 200 includes objects observed from a viewing angle ofthe virtual object 210. Exemplarily, as shown in FIG. 2, under theobservation from the viewing angle of the virtual object 210, thedisplayed environment picture 220 of the three-dimensional virtual sceneincludes the earth 224, the sky 225, the horizon 223, a hill 221, and afactory 222.

The virtual object 210 may move in real time under the control of theuser. For example, the virtual control button 230 shown in FIG. 2 is avirtual button configured to control the movement of the virtual object210, and in a case that the user touches the virtual control button 230,the virtual object 210 may move toward a direction of a touch pointrelative to a center of the virtual control button 230 in the virtualscene.

FIG. 3 shows a schematic diagram of a distance information displayprocess in a virtual scene according to an exemplary embodiment. Asshown in FIG. 3, a terminal (for example, the terminal shown in FIG. 1)running the application program corresponding to the foregoing virtualscene may perform the following steps to display information about adistance between a current controlled object and a target locationpoint.

Step 310: Obtain location information of a target location point in avirtual scene, the target location point being a location point at whichan indication icon exists in a scene picture of the virtual scene, andthe scene picture being a picture of the virtual scene viewed from aviewing angle of a current controlled object.

In this embodiment, the current controlled object refers to the virtualobject controlled by the terminal generating the virtual scene in theforegoing virtual scene. For example, using an example in which thevirtual scene is a shooting game scene, the current controlled objectmay be a virtual soldier located in the game scene and controlled,through the terminal, by a user corresponding to the current terminal.

Step 320: Obtain distance information according to the locationinformation of the target location point, the distance informationindicating a distance between the target location point and a currentcontrolled object.

In this embodiment, the distance between the target location point andthe current controlled object may be a virtual distance between thetarget location point and the current controlled object in the foregoingvirtual scene.

Step 330: Display the distance information corresponding to theindication icon of the target location point in the scene picture of thevirtual scene.

According to the solution shown in FIG. 3, in a virtual scene, for atarget location point at which an indication icon exists in a scenepicture of the virtual scene, the terminal may display information abouta distance between a current controlled object and the target locationpoint corresponding to the indication icon in the scene picture of thevirtual scene. In this way, the user does not need to open a map of thevirtual scene, so that the display of the distance information is moredirect without affecting another operation of the user in the virtualscene, thereby improving the display effect of the distance information.

In this embodiment, in a case that the terminal displays distanceinformation corresponding to the indication icon of the target locationpoint, the distance information may be displayed at a specified locationaround the target location point in a text form in the scene picture ofthe virtual scene.

The specified location around the target location point may be tightlynext to the left, the right, the top, or the bottom of the targetlocation point.

For example, FIG. 4 shows a schematic diagram of a type of display ofdistance information involved in an embodiment. As shown in FIG. 4, avirtual scene 400 displayed by a terminal includes a current controlledobject 410, and an indication icon 420 (that is, an inverted triangularicon in FIG. 4) of a target location point. A display box 430 is furtherdisplayed on the left and tightly next to the indication icon 420, andvalue text (568 m displayed in FIG. 4) of a distance between a targetlocation point corresponding to the indication icon 420 and the currentcontrolled object 410 is displayed in the display box 430.

In another implementation, in a case that the terminal displays distanceinformation corresponding to the indication icon of the target locationpoint, the distance information may be displayed at a specified locationaround the target location point in a graph form in the scene picture ofthe virtual scene.

For example, FIG. 5 shows a schematic diagram of another type of displayof distance information involved in an embodiment. As shown in FIG. 5, avirtual scene 500 displayed by a terminal includes a current controlledobject 510, and an indication icon 520 (that is, an inverted triangularicon in FIG. 5) of a target location point. A distance indication graph530 is further displayed on the left and tightly next to the indicationicon 520, the distance indication graph 530 is formed by one or morehorizontal bars, and the quantity of the horizontal bars in the distanceindication graph 530 indicates a distance between a corresponding targetlocation point and the current controlled object 510. For example, thegreater the quantity of the horizontal bars in the distance indicationgraph 530 is, the longer the distance between the target location pointand the current controlled object 510 is.

In the solution shown in this disclosure, to ensure the brevity of thescene picture of the virtual scene, a specific condition may be set onthe display of the distance information, and only when the set conditionis met, the distance information is displayed in the scene picture ofthe virtual scene.

FIG. 6 shows a flowchart of a distance information display method in avirtual scene according to an exemplary embodiment. Using an example inwhich a specific condition is set on display of distance information, asshown in FIG. 6, the distance information display method in a virtualscene may include the following steps:

Step 610: Obtain location information of a target location point in avirtual scene, the target location point being a location point at whichan indication icon exists in a scene picture of the virtual scene, andthe scene picture being a picture of the virtual scene viewed from aviewing angle of a current controlled object.

In this embodiment, there may be some location points to which specialattention of the user needs to be paid in the virtual scene, such as alocation point at which a specified virtual object is located, alocation point on a boundary of a specified region and closest to thecurrent controlled object, or a marked location point in the virtualscene. To help the user timely learn orientations of the location pointsto which special attention needs to be paid, the terminal may displayindication icons of the location points in the scene picture of thevirtual scene. Location points having corresponding indication icons inthe virtual scene may each be used as the foregoing target locationpoint.

Optionally, a developer of an application program corresponding to thevirtual scene may preset that a type of location point among thelocation points having corresponding indication icons in the virtualscene is the target location point. For example, the program developerof the application program may preset that a location point at which thespecified virtual object is located is the target location point, andother location points having corresponding indication icons are not usedas the target location point.

Alternatively, the user may autonomously set that a type of locationpoint among the location points having corresponding indication icons inthe virtual scene is the target location point. For example, theterminal may present a target location point setting interface to theuser, and the target location point setting interface includes at leastone checkable option. Each option corresponds to one location pointhaving a corresponding indication icon in the virtual scene, and afterthe user checks, in the target location point setting interface, anoption corresponding to the location point at which the specifiedvirtual object is located, the terminal may set the location point atwhich the specified virtual object is located as the target locationpoint.

In a case of displaying the scene picture of the virtual scene, theterminal may obtain location information of the target location point inthe virtual scene, where the location information may be coordinates ina coordinate system corresponding to the virtual scene. The coordinatesystem corresponding to the virtual scene may be a horizontal coordinatesystem, or the coordinate system corresponding to the virtual scene maybe a three-dimensional spatial coordinate system.

In this embodiment, the terminal may obtain the location information ofthe target location point in the virtual scene in real time.Alternatively, in a case that a location of the target location point inthe virtual scene is unchangeable (for example, in a case that thetarget location point is a location point at which a marked building islocated), the terminal may first obtain location information of thetarget location point and buffer the location information, and directlyread the buffered location information when distance information needsto be displayed subsequently.

Step 620: Obtain distance information according to the locationinformation of the target location point, the distance informationindicating a distance between the target location point and a currentcontrolled object.

In addition to obtaining the location information of the target locationpoint, the terminal may further obtain location information of thecurrent controlled object in the virtual scene in real time, and obtain,according to the location information of the target location point andthe location information of the current controlled object, a distancebetween the current controlled object and the target location pointthrough calculation, to obtain distance information corresponding to thetarget location point.

For example, using an example in which the distance information iscoordinates in the coordinate system corresponding to the virtual scene,the terminal may obtain, according to coordinates of the currentcontrolled object and coordinates of the target location point, a linearhorizontal distance between the current controlled object and the targetlocation point through simple geometric calculation, and use the linearhorizontal distance obtained through calculation as the distanceinformation corresponding to the target location point.

Alternatively, when the coordinate system corresponding to the virtualscene is a three-dimensional spatial coordinate system, the terminal mayobtain, according to the coordinates of the current controlled objectand the coordinates of the target location point, a linearthree-dimensional spatial distance between the current controlled objectand the target location point through geometric calculation, and use thelinear three-dimensional spatial distance obtained through calculationas the distance information corresponding to the target location point.

Step 630: Display, in a case that a distance display condition is met,the distance information corresponding to the indication icon of thetarget location point in the scene picture of the virtual scene.

In this embodiment, before displaying the distance information, theterminal first determines whether a preset distance display condition ismet; and if a determination result is that the distance displaycondition is met, the terminal performs a subsequent step of displayingthe distance information, and if the determination result is that thedistance display condition is not met, the terminal does not display thedistance information.

The display condition may include the following types:

1) The current controlled object is located in a second specified regionin the virtual scene.

In actual application, the virtual scene may be divided into a pluralityof regions, and different regions have different functions.Correspondingly, distance information needs to be displayed in someregions, but distance information may not need to be displayed in someother regions. Therefore, in this embodiment of this application, beforedisplaying the distance information, the terminal may first determinewhether the current controlled object is located in the second specifiedregion in which distance information needs to be displayed; and if yes,the terminal performs a subsequent step of displaying the distanceinformation. Otherwise, the terminal may not display the foregoingdistance information.

For example, using an arena game as an example, it is assumed that avirtual scene of the arena game includes a birth region and an arenaregion. Roles of users are born in the birth region, and are uniformlyairdropped to the arena region for arena activities, where the birthregion does not need to display the foregoing distance information. Toimprove the brevity of the scene picture when the roles of the users arein the birth region, the terminal performs a subsequent step ofdisplaying the distance information only when determining that the rolesof the users are in the arena region.

2) The distance between the target location point and the currentcontrolled object is greater than a distance threshold.

In the virtual scene, in a case that the current controlled objectcorresponding to the terminal is located around the target locationpoint, the user generally does not need to know an exact distancebetween the current controlled object and the target location point.Therefore, in this embodiment, to improve the brevity of the interfacedisplay, before displaying the foregoing distance information, theterminal may first determine whether the distance between the currentcontrolled object and the target location point is greater than adistance threshold, and if yes, the terminal performs the subsequentstep of displaying the distance information. Otherwise, the terminal maynot display the foregoing distance information.

The foregoing distance threshold may be preset by a developer. Forexample, the developer sets the distance threshold to 10 m according toexperience, and in a case that the distance between the currentcontrolled object corresponding to the terminal and the target locationpoint is greater than 10 m, the terminal displays the distanceinformation corresponding to the indication icon of the target locationpoint. Otherwise, the terminal does not display the distanceinformation.

Alternatively, when the foregoing distance information is displayed in avalue text form and the value is rounded off to an integer, theforegoing distance threshold may be set to 1. That is, in a case thatthe distance between the current controlled object corresponding to theterminal and the target location point is greater than 1 m, the terminaldisplays the distance information corresponding to the indication iconof the target location point. Otherwise, the terminal does not displaythe distance information.

Alternatively, the foregoing distance threshold may be autonomously setby the user. For example, the terminal may present a distance thresholdsetting interface to the user, and after the user selects or writes avalue in the distance threshold setting interface, the terminal sets adistance corresponding to the value as the foregoing distance threshold.

3) The target location point is located within a viewing angle range infront of the current controlled object.

In actual application, the user generally only focus on the targetlocation point within a viewing angle range in front of the currentcontrolled object. Therefore, in this embodiment, before displaying theinformation about the distance between the current controlled object andthe target location point, the terminal may first determine whether thetarget location point is located within the viewing angle range in frontof the current controlled object, and if yes, the terminal displays thedistance information corresponding to the indication icon of the targetlocation point. Otherwise, the terminal may not display the distanceinformation of the target location point.

For example, FIG. 7 shows a schematic diagram of a type of display ofdistance information involved in an embodiment. As shown in FIG. 7, avirtual scene 700 displayed by a terminal includes a current controlledobject 710, and an indication icon 720 (that is, an inverted triangularicon in FIG. 7) of a target location point A. In FIG. 7, the targetlocation point A is located within a viewing angle range in front of thecurrent controlled object 710. In this case, a display box 730 isdisplayed by the terminal on the left and tightly next to the indicationicon 720, and value text of a distance between the target location pointA and the current controlled object 710 is displayed in the display box730. A target location point B further exists in the virtual scene 700,the target location point B corresponds to an indication icon 740, andthe target location point B is located outside the viewing angle rangein front of the current controlled object 710 (for example, the targetlocation point B may be located beside or behind the current controlledobject 710). In this case, the indication icon 740 is displayed at anedge of a scene picture of the virtual scene 700, and indicates, byusing an arrow, an orientation of the target location point B relativeto the current controlled object 710. In addition, the terminal does notdisplay, corresponding to the indication icon 740, information about adistance between the current controlled object 710 and the targetlocation point B.

4) The target location point is located outside the scene picture of thevirtual scene.

In this embodiment, that the target location point is located outsidethe scene picture of the virtual scene may generally mean that, thetarget location point is not directly displayed in the scene picture ofthe virtual scene. For example, in a case that the target location pointis located outside the viewing angle range in front of the currentcontrolled object, or in a case that the target location point islocated within the viewing angle range in front of the currentcontrolled object and outside the horizon, or in a case that the targetlocation point is located within the viewing angle range in front of thecurrent controlled object and blocked by another virtual object (forexample, a house, a stone, a tree, or a hillside) within the horizon,each case may be considered as that the target location point is locatedoutside the scene picture of the virtual scene.

For example, FIG. 8 shows a schematic diagram of another type of displayof distance information involved in an embodiment. As shown in FIG. 8, avirtual scene 800 displayed by a terminal includes a current controlledobject 810, and an indication icon 820 (that is, an inverted triangularicon in FIG. 8) of a target location point. The target location point isa location point at which a humanoid virtual object controlled by acomputer or another user is located. At a moment a, a location pointcorresponding to the humanoid virtual object is located in the scenepicture of the virtual scene, and the humanoid virtual object may bedirectly observed by the user. In this case, the terminal does notdisplay distance information of the location point at which the humanoidvirtual object is located. At a moment b after the moment a, thehumanoid virtual object moves to the back of a house. In this case, thelocation point corresponding to the humanoid virtual object is locatedoutside the scene picture of the virtual scene, and the humanoid virtualobject cannot be directly observed by the user. In this case, theterminal displays a display box 830 corresponding to the indication icon820, and displays, in the display box 830, distance information in atext form of the location point at which the humanoid virtual object islocated.

In actual application, the foregoing four distance display conditionsmay be used independently. That is, in a case that the terminaldetermines that any one of the foregoing four distance displayconditions is met, the terminal may perform the foregoing step ofdisplaying the distance information. Alternatively, the foregoing fourdistance display conditions may be partially combined for use. That is,in a case that the terminal determines that two specified conditions orthree specified conditions of the foregoing four distance displayconditions are met, the terminal may perform the foregoing step ofdisplaying the distance information. Alternatively, the foregoing fourdistance display conditions may be all combined for use. That is, in acase that the terminal determines that the foregoing four distancedisplay conditions are all met, the terminal may perform the foregoingstep of displaying the distance information.

In an implementation, the terminal may further adjust, according to thedistance information, the indication icon corresponding to the targetlocation point, to further indicate a distance between the targetlocation point and the current controlled object. For example, theterminal may obtain, according to the distance information of the targetlocation point, a target size of the indication icon of the targetlocation point; and adjust a size of the indication icon of the targetlocation point to the target size.

A correspondence between the indication icon of the target locationpoint and the distance information may be preset in the terminal. In acase of adjusting the indication icon, the terminal may query, accordingto the distance information of the target location point, thecorrespondence to obtain the target size of the indication icon, anddisplay, according to the target size obtained through querying, theindication icon in the scene picture of the virtual scene.

For example, using an example in which the farther the distanceindicated by the distance information is, the larger the target size ofthe corresponding indication icon is, FIG. 9 shows a schematic diagramof a type of display of an indication icon involved in an embodiment. Asshown in FIG. 9, a virtual scene 90 displayed by a terminal includes acurrent controlled object 91, and an indication icon 92 (that is, aninverted triangular icon in FIG. 9) of a target location point. Thetarget location point is a location point at which a humanoid virtualobject controlled by a computer or another user is located. At a moment,a distance between the location point corresponding to the humanoidvirtual object and the current controlled object is 281 m, and at themoment a, the terminal displays the indication icon 92 by using a firstsize. At a moment b, the humanoid virtual object moves to a far place,and a distance to the current controlled object is 568 m. In this case,the terminal displays the indication icon 92 by using a second size. Itcan be learned from FIG. 9 that the size of the indication icon 92 atthe moment a is obviously larger than the size of the indication icon 92at the moment b.

In FIG. 9, while displaying distance information of the target locationpoint corresponding to the indication icon of the target location point,the terminal displays the indication icon at a size corresponding to thedistance information. In another implementation, while displaying theindication icon of the target location point at the size correspondingto the distance information, the terminal may not display the distanceinformation. That is, the terminal indicates, by using the size of theindication icon of the target location point, the distance between thetarget location point and the current controlled object in the scenepicture of the virtual scene.

Based on the above, according to the solution shown in this embodiment,in a virtual scene, for a target location point at which an indicationicon exists in a scene picture of the virtual scene, the terminal maydisplay information about a distance between a current controlled objectand the target location point corresponding to the indication icon in atext or graph form in the scene picture of the virtual scene. In thisway, the user does not need to open a map of the virtual scene, so thatthe display of the distance information is more direct without affectinganother operation of the user in the virtual scene, thereby improvingthe display effect of the distance information.

In addition, according to the solution shown in this embodiment, beforethe distance information is displayed, whether the distance displaycondition is met is first determined. Only when the distance displaycondition is met, the distance information of the target location pointis displayed, so that unnecessary information display is avoided in thescene picture of the virtual scene, thereby improving the brevity of thescene picture.

In addition, in the solution shown in this embodiment, the terminal mayadjust, according to the distance information of the target locationpoint, the size of the indication icon of the target location point, tofurther improve the effect of indicating the distance between the targetlocation point and the current controlled object.

In actual application, for different types of target location points,the display forms and display logic of the distance information of thetarget location points may also be different. In the subsequentembodiments, description is made by using an example in which theforegoing target location point is the location point at which thespecified virtual object is located, the location point on the boundaryof the specified region and closest to the current controlled object, orthe marked location point in the virtual scene.

Based on the solution shown in FIG. 3 or FIG. 6, in an implementation,in a case that the target location point includes the location point atwhich the specified virtual object is located, and the indication iconof the target location point includes a first icon indicating thespecified virtual object, the terminal may display, in a case that thescene picture of the virtual scene displays the distance information ofthe target location point, the first icon in a straight line directionof the specified virtual object relative to the current controlledobject in the scene picture of the virtual scene; and display thedistance information corresponding to the first icon.

There may be a plurality of types of specified virtual objects. Forexample, the specified virtual object may be a virtual object controlledby another user that is in the same team as the user corresponding tothe terminal in the virtual scene, or the specified virtual object maybe a marked hostile virtual object, or the specified virtual object maybe a specified prop object (for example, a marked vehicle prop or weaponprop), and a specific form of the specified virtual object is notlimited in the embodiments.

Using an example in which the specified virtual object is a virtualobject controlled by another user that is in the same team as the usercorresponding to the terminal, FIG. 10 shows a flowchart of displaying adistance to a teammate controlled object according to an exemplaryembodiment. A shooting game scene in which virtual objects are born in abirth region and are uniformly dropped to an arena region for arenaactivities is used as an example. As shown in FIG. 10, in a case ofteaming up, distances between the current controlled object andteammates are not displayed in the birth region. After the currentcontrolled object is dropped to the arena region, the terminal firstdetermines survival situations of the teammate controlled objects (thatis, the virtual objects controlled by the teammates) (1010). If noteammate survives (1011), the terminal does not display the distancesbetween the current controlled object and the teammate controlledobjects (1020); and if a teammate survives (1012), the terminal collectsstatistics on coordinates A of the current controlled object (1030) andcoordinates B of the virtual object controlled by the surviving teammate(1040). Then the terminal calculates a distance D (for example, D may bea horizontal distance between the coordinates A and the coordinates B(1050), and the distance D is rounded off to an integer) between thecurrent controlled object and the virtual object controlled by thesurviving teammate, and determines whether the distance D is greaterthan 1 m (that is, the distance threshold is 1 m)(1060). If yes, theterminal displays the distance D corresponding to the first icon of thevirtual object controlled by the surviving teammate (1070). The distancebetween the current controlled object and the teammate may not bedisplayed in the mini-map.

FIG. 11 shows a schematic diagram of a type of display of a distance toa teammate involved in an embodiment. As shown in FIG. 11, currentsurviving teammate controlled objects are a teammate controlled object 3(corresponding to a circular icon 1101 labeled 3) and a teammatecontrolled object 4 (corresponding to a circular icon 1102 labeled 4),where the teammate controlled object 3 is located within a viewing anglerange in front of the current controlled object, and the teammatecontrolled object 4 is located outside the viewing angle range in frontof the current controlled object. The terminal displays the icon 1101 ina straight line direction between the current controlled object and theteammate controlled object 3, and displays a distance (290 m) betweenthe current controlled object and the teammate controlled object 3 in atext box 1103 on the right side of the icon 1101, and a distance betweenthe current controlled object and the teammate controlled object 4 isnot displayed around the icon 1102.

Based on the solution shown in FIG. 3 or FIG. 6, in anotherimplementation, the target location point includes a closest boundarypoint, the closest boundary point is a location point that is closest tothe current controlled object among region boundary points, and theregion boundary point is a location point on a boundary of a firstspecified region in the virtual scene. The current controlled object islocated outside the first specified region, and the indication icon ofthe target location point include a second icon indicating a relativelocation between the current controlled object and the first specifiedregion. The terminal may display, while displaying distance informationof the target location point in the scene picture of the virtual scene,the second icon on a boundary of a mini-map in the scene picture of thevirtual scene, where a location of the second icon on the boundary ofthe mini-map indicates a direction of the closest boundary pointrelative to the current controlled object; and display the distanceinformation corresponding to the second icon.

The foregoing first specified region may be some regions in the virtualscene. For example, using an example in which the virtual scene is ashooting game scene, the foregoing first specified region may be a “safezone” in the shooting game scene.

Using an example in which the specified virtual object is a safe zone ina shooting game scene, FIG. 12 shows a flowchart of displaying adistance to a safe zone according to an exemplary embodiment. As shownin FIG. 12, the terminal first determines a status of the object (thatis, whether the current controlled object is located in the safe zone)(1210). In a case that the current controlled object is located in thesafe zone (1211), the terminal does not display the distance to the safezone (1220), and in a case that the current controlled object is locatedoutside the safe zone (1212), the terminal collects statistics oncoordinates A of the current controlled object (1230) and coordinates Bof a center of the circular safe zone (1240). Then the terminalcalculates a distance D (for example, D may be a horizontal distancebetween the coordinates A and the coordinates B minus a radius r of thesafe zone, and the distance D is rounded off to an integer) between thecurrent controlled object and a point on an edge of the safe zoneclosest to the current controlled object (1250), and determines whetherthe distance D is greater than 1 m (that is, the distance threshold is 1m) (1260). If yes, the terminal displays the distance D corresponding tothe second icon indicating a relative direction between the safe zoneand the current controlled object (1270).

FIG. 13 shows a schematic diagram of a type of display of a distance toa safe zone involved in an embodiment. As shown in FIG. 13, a mini-map1301 is displayed at an upper right corner of a game interface, and arunning icon 1302 is displayed at a lower edge of the mini-map 1301. Alocation of the running icon 1302 at the lower edge of the mini-map 1301may indicate an orientation of the safe zone relative to the currentcontrolled object, and the terminal displays a closest distance (805 m)between the current controlled object and the safe zone in a text box1303 on one side of the running icon 1302. In addition, a distancebetween the text box 1303 and the running icon 1302 is fixed to 20pixels, and the text box 1303 may move along with the icon 1302. In acase that the running icon 1302 moves to a location of which a distanceto the left edge is a specific quantity of pixels, the text box 1303appears at the right side of the icon 1302; and in a case that therunning icon 1302 moves to a location of which a distance to the rightedge is a specific quantity of pixels, the text box 1303 appears at theleft side of the icon 1302.

Based on the solution shown in FIG. 3 or FIG. 6, in still anotherimplementation, the target location point includes a marked locationpoint, and the indication icon of the target location point includes athird icon indicating the marked location point. The terminal maydisplay, while displaying distance information of the target locationpoint in the scene picture of the virtual scene, the third icon in anorientation display region in the scene picture of the virtual scene,where a location of the third icon in the orientation display regionindicates a direction of the marked location point relative to thecurrent controlled object; and display the distance informationcorresponding to the third icon.

The foregoing orientation display region may alternatively be referredto as a virtual compass. The foregoing marked location point may be alocation point autonomously marked by the user corresponding to theterminal, or the marked location point may be a location point marked byanother user in the same team as the user corresponding to the terminal.

FIG. 14 shows a flowchart of displaying a distance to a marked locationpoint according to an exemplary embodiment. Using a game scene as anexample, as shown in FIG. 14, the terminal first determines a status ofa marked location point (the marked location point is the foregoingmarked location point) (that is, determines whether there is a markedlocation point)(1410). If there is no marked location point in the gamescene (1411), the terminal does not display a distance to the markedlocation point (1420), and if there is a marked location point in thegame scene (1412), the terminal collects statistics on coordinates A ofthe current controlled object (1430) and coordinates B of the markedlocation point (1440). Then the terminal calculates a distance D (forexample, D may be a horizontal distance between the coordinates A andthe coordinates B, and the distance D is rounded off to an integer)between the current controlled object and the marked location point(1450), and determines whether the distance D is greater than 1 m (thatis, the distance threshold is 1 m)(1460), and if yes, the terminaldisplays the distance D corresponding to an icon of the marked locationpoint in the virtual compass (1470). The distance between the currentcontrolled object and the marked location point may not be displayed inany mini-map.

FIG. 15 shows a schematic diagram of displaying a distance to a markedlocation point involved in an embodiment. A shooting game scene in whichvirtual objects are bom in a birth region and are uniformly dropped toan arena region for arena activities is used as an example. As shown inFIG. 15, a virtual compass 1501 is displayed at an upper edge of a gameinterface, and an inverted water-drop-shaped icon 1502 is displayed inthe virtual compass 1501. A location of the icon 1502 in the virtualcompass 1501 may indicate an orientation of the marked location pointrelative to the current controlled object, and the terminal displays aclosest distance (1413 m) between the current controlled object and themarked location point in a text box 1503 on one side of the icon 1502.In addition, the text box 1503 may move along with the icon 1502. In acase that the icon 1502 moves to a location of which a distance to theleft edge of the virtual compass 1501 is a specific quantity of pixels,the text box 1503 appears at the right side of the icon 1502; and in acase that the icon 1502 moves to a location of which a distance to theright edge of the virtual compass 1501 is a specific quantity of pixels,the text box 1503 appears at the left side of the icon 1502. In thesolution shown in FIG. 15, a distance needs to be displayed in thevirtual compass provided that a player sets a marked location point in amap of the arena region. The distance may not be displayed for themarked location point that is set in a map of the birth region. Inaddition, the marked location point set by the player in the map of thebirth region is removed after the current controlled object gets on anairplane.

Based on the solution shown in FIG. 3 or FIG. 6, in still anotherimplementation, in a case that the target location point includes amarked location point, the terminal may present, while receiving anoperation of unfolding the mini-map, a map interface, where the mapinterface is for presenting a full map of the virtual scene; and displaya fourth icon in the map interface, where the fourth icon is forindicating a location of the marked location point in the full map; andthe terminal displays the distance information corresponding to thefourth icon.

FIG. 16 shows a flowchart of displaying a distance to a marked locationpoint according to an exemplary embodiment. Using a game scene as anexample, as shown in FIG. 16, after the terminal presents a mapinterface, the terminal first determines a status of the marked locationpoint (that is, determines whether there is a marked location point)(1610). If there is no marked location point in the game scene (1611),the terminal does not display a distance to the marked location point inthe map interface (1620), and if there is a marked location point in thegame scene (1612), the terminal collects statistics on coordinates A ofthe current controlled object (1630) and coordinates B of the markedlocation point (1640). Then the terminal calculates a distance D (forexample, D may be a horizontal distance between the coordinates A andthe coordinates B. and the distance D is rounded off to an integer)between the current controlled object and the marked location point(1650), and determines whether the distance D is greater than 1 m (thatis, the distance threshold is 1 m) (1660), and if yes, the terminaldisplays the distance D corresponding to an icon of the marked locationpoint in the map interface (1670).

FIG. 17 shows a schematic diagram of displaying a distance to a markedlocation point involved in an embodiment. As shown in FIG. 17, a mapinterface 1701 is displayed on an upper layer of a game interface, andan inverted water-drop-shaped icon 1702 is displayed in the mapinterface 1701. A location of the icon 1702 in the map interface 1701may indicate a location of the marked location point in the game scene,and the terminal displays a closest distance (1440 m) between thecurrent controlled object and the marked location point in a text box1703 on one side of the icon 1702. In the solution shown in FIG. 17, adistance needs to be displayed in the map interface 1701 provided thatthe player sets a marked location point in a map of the arena region.The distance may not be displayed for the marked location point that isset in a map of the birth region. In addition, the marked location pointset by the player in the map of the birth region is removed after thecurrent controlled object gets on an airplane.

Optionally, the terminal may further present, while presenting the mapinterface, distance meshes on an upper layer of the map interface, and aside length of each mesh corresponds to a fixed distance in the virtualscene. Moreover, an icon of the marked location point and an icon of thecurrent controlled object are presented in the map interface, to helpthe user approximately estimate, according to the quantity of meshesbetween the icon of the marked location point and the icon of thecurrent controlled object, a distance between the marked location pointand the current controlled object.

In a virtual scene, especially in an arena shooting game scene, teamgaming can enable a player to experience more complete gaming fun, andis an indispensable important part of a game. While team gaming,location information and distance information of teammates areundoubtedly an important basis for the player to make a tacticaldecision. According to the foregoing solution of this disclosure,effective distance display may be performed, which can not only help theplayer quickly determine a specific location of a teammate throughpositioning, but also help the player effectively make a decision, toimprove interactivity and strategy of the game. Moreover, the player mayview a distance between the player and a marked point of a teammate inreal time in the map interface and the virtual compass, to graduallyprovide the player with a sense of target and a sense of direction, soas to assist the player in better experiencing the game. The distancedisplay within a field of view not only simplifies the operations of theplayer and reduces the operating frequency of the player, but also makesthe presentation of information more direct and convenient and greatlyenhances the effectiveness of the information. Moreover, each time theplayer is located outside the safe zone, a current closest distancebetween the player and the safe zone is displayed in real time, toassist the player in making a decision according to a current situation,thereby greatly enhancing strategy and interactivity of the game.

In addition to the arena shooting game scene, the foregoing solution mayalso be applied to another similar multiplayer cooperative game.According to the foregoing solution of this disclosure, a requirement ofa player for knowing information about a teammate in a cooperative gamecan be effectively met, to help the player quickly and accuratelydetermine a location of the teammate through positioning, and make adecision; besides, complicated operations of the player for obtainingdistance information are significantly simplified, game fluency of theplayer is improved, and an entry barrier of the game is lowered, so thatthe player is quickly familiar with the game; in addition, this solutioncan further establish an effective communication channel andrelationship between players, to help create a sense of trust and asense of interaction between the players, thereby improving a sense ofidentity of the players for the game and growth in skill.

FIG. 18 is a structural block diagram of a terminal according to anexemplary embodiment. The terminal may perform all or some stepsperformed by a terminal in the method shown in the embodimentcorresponding to FIG. 3 or FIG. 6. The terminal may include:

a location information obtaining module 1801, configured to obtainlocation information of a target location point in the virtual scene,the target location point being a location point at which an indicationicon exists in a scene picture of the virtual scene, and the scenepicture being a picture of the virtual scene viewed from a viewing angleof a current controlled object;

a distance information obtaining module 1802, configured to obtaindistance information according to the location information of the targetlocation point, the distance information indicating a distance betweenthe target location point and the current controlled object; and

a first information display module 1803, configured to display thedistance information corresponding to the indication icon of the targetlocation point in the scene picture of the virtual scene.

Optionally, the target location point includes a location point at whicha specified virtual object is located, and the indication icon of thetarget location point includes a first icon indicating the specifiedvirtual object; and the first information display module 1803 includes:

a first icon display unit, configured to display the first icon in astraight line direction of the specified virtual object relative to thecurrent controlled object in the scene picture of the virtual scene; and

a first information display unit, configured to display the distanceinformation corresponding to the first icon.

Optionally, the target location point includes a closest boundary point,the closest boundary point being a location point that is closest to thecurrent controlled object among region boundary points, the regionboundary point being a location point on a boundary of a first specifiedregion in the virtual scene, and the current controlled object beinglocated outside the first specified region; the indication icon of thetarget location point includes a second icon indicating a relativelocation between the current controlled object and the first specifiedregion; and the first information display module 1803 includes:

a second icon display unit, configured to display the second icon on aboundary of a mini-map in the scene picture of the virtual scene, alocation of the second icon on the boundary of the mini-map indicating adirection of the closest boundary point relative to the currentcontrolled object; and

a second information display unit, configured to display the distanceinformation corresponding to the second icon.

Optionally, the target location point includes a marked location point,and the indication icon of the target location point includes a thirdicon indicating the marked location point; and the first informationdisplay module 1803 includes:

a third icon display unit, configured to display the third icon in anorientation display region in the scene picture of the virtual scene, alocation of the third icon in the orientation display region indicatinga direction of the marked location point relative to the currentcontrolled object; and

a third information display unit, configured to display the distanceinformation corresponding to the third icon.

Optionally, the terminal further includes:

a map presenting module, configured to present a full map in a case ofreceiving an operation of unfolding the mini-map; and

a second information display module, configured to display a fourth iconin the full map, the fourth icon indicating a location of the markedlocation point in the full map; and display the distance informationcorresponding to the fourth icon.

Optionally, the first information display module 1803 is configured todisplay the distance information at a specified location around thetarget location point in a text form in the scene picture of the virtualscene.

Optionally, the terminal further includes:

a size determining module, configured to obtain a target size of theindication icon of the target location point according to the distanceinformation; and

a size adjusting module, configured to adjust a size of the indicationicon of the target location point to the target size.

Optionally, the first information display module 1803 is configured toperform, in a case that a distance display condition is met, theoperation of displaying the distance information corresponding to theindication icon of the target location point in the scene picture of thevirtual scene,

the distance display condition including at least one of the followingconditions:

the current controlled object being located in a second specified regionin the virtual scene;

the distance between the target location point and the currentcontrolled object being greater than a distance threshold;

the target location point being located within a viewing angle range infront of the current controlled object; and

the target location point being located outside the scene picture of thevirtual scene.

FIG. 19 is a structural block diagram of a computer device 1900according to an exemplary embodiment. The computer device 1900 may be auser terminal, such as a smartphone, a tablet computer, a moving pictureexperts group audio layer III (MP3) player, a moving picture expertsgroup audio layer IV (MP4) player, a notebook computer, or a desktopcomputer. The computer device 1900 may be further referred to as anothername such as user equipment, a portable terminal, a laptop terminal, ora desktop terminal.

Generally, the computer device 1900 includes a processor 1901 and amemory 1902.

The processor 1901 may include one or more processing cores, forexample, a 4-core processor or an 8-core processor. The processor 1901may be implemented by at least one hardware form of a digital signalprocessor (DSP), a field-programmable gate array (FPGA), and aprogrammable logic array (PLA). The processor 1901 may alternativelyinclude a main processor and a coprocessor. The main processor isconfigured to process data in an awake state, also referred to as acentral processing unit (CPU), and the coprocessor is a low-powerconsumption processor configured to process data in an idle state. Insome embodiments, the processor 1901 may be integrated with a graphicsprocessing unit (GPU). The GPU is responsible for rendering and drawingcontent to be displayed by a display screen. In some embodiments, theprocessor 1901 may further include an artificial intelligence (AI)processor. The AI processor is configured to process a calculationoperation related to machine learning.

The memory 1902 may include one or more computer-readable storage media.The computer-readable storage media may be non-transient. The memory1902 may further include a high-speed random access memory, and anon-volatile memory such as one or more magnetic disk storage devicesand a flash memory device. In some embodiments, the non-transientcomputer-readable storage medium in the memory 1902 is configured tostore at least one instruction, and the at least one instruction isconfigured to be executed by the processor 1901 to implement thedistance information display method in a virtual scene provided in themethod embodiment of this disclosure.

In some embodiments, the computer device 1900 further optionallyincludes a peripheral device interface 1903 and at least one peripheraldevice. The processor 1901, the memory 1902, and the peripheral deviceinterface 1903 may be connected through a bus or a signal cable. Eachperipheral device may be connected to the peripheral device interface1903 through a bus, a signal cable, or a circuit board. The peripheraldevice includes: at least one of a radio frequency (RF) circuit 1904, atouch display screen 1905, a camera component 1906, an audio frequencycircuit 1907, a positioning component 1908, and a power source 1909.

The peripheral device interface 1903 may be configured to connect the atleast one peripheral device related to input/output (I/O) to theprocessor 1901 and the memory 1902. In some embodiments, the processor1901, the memory 1902, and the peripheral device interface 1903 areintegrated into the same chip or circuit board. In some otherembodiments, any one or two of the processor 1901, the memory 1902, andthe peripheral device interface 1903 may be implemented on anindependent chip or circuit board, and the implementation is not limitedin this embodiment.

The radio frequency circuit 1904 is configured to receive and transmit aradio frequency (RF) signal, also referred to as an electromagneticsignal. The radio frequency circuit 1904 communicates with acommunications network and another communications device by using theelectromagnetic signal. The radio frequency circuit 1904 may convert anelectric signal into an electromagnetic signal for transmission, orconvert a received electromagnetic signal into an electric signal.Optionally, the radio frequency circuit 1904 includes an antenna system,an RF transceiver, one or more amplifiers, a tuner, an oscillator, adigital signal processor, a codec chip set, a subscriber identity modulecard, and the like. The radio frequency circuit 1904 may communicatewith another terminal by using a wireless communication protocol. Thewireless communication protocol includes, but is not limited to: a worldwide web, a metropolitan area network, an intranet, generations ofmobile communication networks (2G, 3G, 4G, and 5G), a wireless localarea network and/or a wireless fidelity (Wi-Fi) network. In someembodiments, the radio frequency circuit 1904 may further include a nearfield communication (NFC) related circuit, and is not limited in thisdisclosure.

The display screen 1905 is configured to display a user interface (UI).The UI may include a graph, text, an icon, a video, and any combinationthereof. In a case that the display screen 1905 is a touch displayscreen, the display screen 1905 is further capable of collecting a touchsignal on or over a surface of the display screen 1905. The touch signalmay be inputted into the processor 1901 as a control signal forprocessing. In this case, the display screen 1905 may be furtherconfigured to provide a virtual button and/or a virtual keyboard, alsoreferred to as a soft button and/or a soft keyboard. In someembodiments, there is one display screen 1905, disposed on a front panelof the computer device 1900. In some other embodiments, there may be atleast two display screens 1905, respectively disposed on differentsurfaces of the computer device 1900 or designed in a foldable shape. Instill some other embodiments, the display screen 1905 may be a flexibledisplay screen, disposed on a curved surface or a folded surface of thecomputer device 1900. Even, the display screen 1905 may be further setto have a non-rectangular irregular graph, that is, a special-shapedscreen. The display screen 1905 may be manufactured by using a materialsuch as a liquid crystal display (LCD), an organic light-emitting diode(OLED), or the like.

The camera component 1906 is configured to collect an image or a video.Optionally, the camera component 1906 includes a front-facing camera anda rear-facing camera. Generally, the front-facing camera is disposed onthe front panel of the terminal, and the rear-facing camera is disposedon a back face of the terminal. In some embodiments, there are at leasttwo rear-facing cameras, each being any one of a main camera, a depth offield camera, a wide-angle camera, and a telephoto camera, to implementa Bokeh function through fusion of the main camera and the depth offield camera, panoramic photo shooting and virtual reality (VR) shootingfunctions through fusion of the main camera and wide-angle camera, oranother fusion shooting function. In some embodiments, the cameracomponent 1906 may further include a flash. The flash may be a singlecolor temperature flash or a double color temperature flash. The doublecolor temperature flash refers to a combination of a warm flash and acold flash, and may be configured to perform light ray compensation atdifferent color temperatures.

The audio circuit 1907 may include a microphone and a loudspeaker. Theloudspeaker is configured to collect sound waves of a user and anenvironment, and convert the sound waves into electric signals and inputthe electrical signals into the processor 1901 for processing, or inputthe electrical signals into the radio frequency circuit 1904 toimplement speech communication. For the purpose of stereo soundcollection or noise reduction, there may be a plurality of microphones,respectively disposed at different parts of the computer device 1900.The microphone may be further a microphone array or an omnidirectionalcollection microphone. The loudspeaker is configured to convert electricsignals from the processor 1901 or the radio frequency circuit 1904 intosound waves. The loudspeaker may be a conventional thin-film loudspeakeror a piezoelectric ceramic loudspeaker. In a case that the loudspeakeris the piezoelectric ceramic loudspeaker, electric signals not only canbe converted into sound waves that can be heard by human, but also canbe converted into sound waves that cannot be heard by human for rangingand the like. In some embodiments, the audio circuit 1907 may furtherinclude an earphone jack.

The positioning component 1908 is configured to determine a currentgeographic location of the computer device 1900 through positioning, toimplement navigation or a location based service (LBS). The positioningcomponent 1908 may be a positioning component based on the globalpositioning system (GPS) of the United States, China's Beidou NavigationSatellite System (BDS), or the Galileo system of Russia.

The power supply 1909 is configured to supply power to components in thecomputer device 1900. The power supply 1909 may be an alternatingcurrent, a direct current, a primary battery, or a rechargeable battery.In a case that the power supply 1909 includes the rechargeable battery,the rechargeable battery may be a wired charging battery or a wirelesscharging battery. The wired charging battery is a battery chargedthrough a wired line, and the wireless charging battery is a batterycharged through a wireless coil. The rechargeable battery may be furtherconfigured to support a quick charge technology.

In some embodiments, the computer device 1900 further includes one ormore sensors 1910. The one or more sensors 1910 include, but are notlimited to, an acceleration sensor 1911, a gyroscope sensor 1912, apressure sensor 1913, a fingerprint sensor 1914, an optical sensor 1915,and a proximity sensor 1916.

The acceleration sensor 1911 may detect accelerations on threecoordinate axes of a coordinate system established by the computerdevice 1900. For example, the acceleration sensor 1911 may be configuredto detect components of gravity acceleration on the three coordinateaxes. The processor 1901 may control, according to a gravityacceleration signal collected by the acceleration sensor 1911, the touchdisplay screen 1905 to display the user interface in a frame view or aportrait view. The acceleration sensor 1911 may be further configured tocollect motion data of a game or a user.

The gyroscope sensor 1912 may detect a body direction and a rotationangle of the computer device 1900. The gyroscope sensor 1912 maycooperate with the acceleration sensor 1911 to collect a 3D action bythe user on the computer device 1900. The processor 1901 may implementthe following functions according to data collected by the gyroscopesensor 1912: motion sensing (for example, the UI is changed according toa tilt operation of the user), image stabilization during shooting, gamecontrol, and inertial navigation.

The pressure sensor 1913 may be disposed on a side frame of the computerdevice 1900 and/or a lower layer of the touch display screen 1905. In acase that the pressure sensor 1913 is disposed on the side frame of thecomputer device 190, a holding signal of the user on the computer device1900 may be detected. The processor 1901 performs left and right handrecognition or a quick operation according to the holding signalcollected by the pressure sensor 1913. In a case that the pressuresensor 1913 is disposed on the low layer of the touch display screen1905, the processor 1901 controls, according to a pressure operation ofthe user on the touch display screen 1905, an operable control on theUI. The operable control includes at least one of a button control, ascroll bar control, an icon control, and a menu control.

The fingerprint sensor 1914 is configured to collect a fingerprint ofthe user. The processor 1901 identifies an identity of the useraccording to the fingerprint collected by the fingerprint sensor 1914,or the fingerprint sensor 1914 identifies an identity of the useraccording to the collected fingerprint. When the identity of the user isidentified as a trusted identity, the processor 1901 authorizes the userto perform a related sensitive operation. The sensitive operationincludes unlocking a screen, viewing encrypted information, downloadingsoftware, payment, changing settings, and the like. The fingerprintsensor 1914 may be disposed on a front face, a back face, or a side faceof the computer device 1900. When a physical button or a vendor logo isdisposed on the computer device 1900, the fingerprint sensor 1914 may beintegrated together with the physical button or the vendor logo.

The optical sensor 1915 is configured to collect ambient lightintensity. In an embodiment, the processor 1901 may control displayluminance of the touch display screen 1905 according to the ambientlight intensity collected by the optical sensor 1915. When the ambientlight intensity is relatively high, the display luminance of the touchdisplay screen 1905 is increased. When the ambient light intensity isrelatively low, the display luminance of the touch display screen 1905is reduced. In another embodiment, the processor 1901 may furtherdynamically adjust shooting parameters of the camera component 1906according to the ambient light intensity collected by the optical sensor1915.

The proximity sensor 1916, also referred to as a distance sensor, isusually disposed on the front panel of the computer device 1900. Theproximity sensor 1916 is configured to collect a distance between afront face of the user and the front face of the computer device 1900.In an embodiment, when the proximity sensor 1916 detects that thedistance between the front face of the user and the front face of thecomputer device 1900 is gradually decreased, the processor 1901 controlsthe touch display screen 1905 to switch from a screen-on state to ascreen-off state. When the proximity sensor 1916 detects that thedistance between the front face of the user and the front face of thecomputer device 1900 is gradually increased, the processor 1901 controlsthe touch display screen 1905 to switch from the screen-off state to thescreen-on state.

A person skilled in the art may understand that the structure shown inFIG. 19 does not constitute any limitation on the computer device 1900,and the computer device may include more components or fewer componentsthan those shown in the figure, or some components may be combined, or adifferent component deployment may be used.

In an exemplary embodiment, a non-temporary computer-readable storagemedium including an instruction is further provided. For example, thenon-temporary computer-readable storage medium includes at least oneinstruction, at least one program, a code set, or an instruction set.The at least one instruction, the at least one program, the code set, orthe instruction set may be executed by a processor to implement all orsome steps in the method shown in the embodiment corresponding to FIG. 3or FIG. 6. For example, the non-temporary computer-readable storagemedium may be a read-only memory (ROM), a random access memory (RAM), acompact disc ROM (CD-ROM), a magnetic tape, a floppy disk, an opticaldata storage device, or the like.

After considering the specification and implementing the presentdisclosure, persons skilled in the art can readily think of otherimplementations of this disclosure. This disclosure is intended to coverany variations, uses or adaptation of this application following thegeneral principles of this disclosure, and includes the well-knownknowledge and conventional technical means in the art and undisclosed inthis disclosure. The specification and the embodiments are merelyconsidered as an example, and the actual scope and the spirit of thisdisclosure are pointed out by the following claims.

It is to be understood that this disclosure is not limited to theaccurate structures that are described in the foregoing and that areshown in the accompanying drawings, and modifications and changes may bemade without departing from the scope of this disclosure. The scope ofthis disclosure is limited by the appended claims only.

What is claimed is:
 1. A distance information display method in avirtual scene, performed by a terminal, and comprising: obtaininglocation information of a target location point in the virtual scene,the target location point comprising a location point at which anindication icon exists in a scene picture of the virtual scene, and thescene picture being a picture of the virtual scene viewed from a viewingangle of a current controlled object; obtaining distance informationaccording to the location information of the target location point, thedistance information indicating a distance between the target locationpoint and the current controlled object; and displaying the distanceinformation corresponding to the indication icon of the target locationpoint in the scene picture of the virtual scene.
 2. The method of claim1, wherein: the target location point comprises a location point atwhich a specified virtual object is located; the indication icon of thetarget location point comprises a first icon indicating the specifiedvirtual object; and the displaying the distance informationcorresponding to the indication icon of the target location point in thescene picture of the virtual scene comprises: displaying the first iconin a straight line direction of the specified virtual object relative tothe current controlled object in the scene picture of the virtual scene;and displaying the distance information corresponding to the first icon.3. The method of claim 1, wherein: the target location point comprises aclosest boundary point, the closest boundary point being a locationpoint that is closest to the current controlled object among regionboundary points, the region boundary points being location points on aboundary of a first specified region in the virtual scene, and thecurrent controlled object being located outside the first specifiedregion; the indication icon of the target location point comprises asecond icon indicating a relative location between the currentcontrolled object and the first specified region; and the displaying thedistance information corresponding to the indication icon of the targetlocation point in the scene picture of the virtual scene comprises:displaying the second icon on a boundary of a mini-map in the scenepicture of the virtual scene, a location of the second icon on theboundary of the mini-map indicating a direction of the closest boundarypoint relative to the current controlled object; and displaying thedistance information corresponding to the second icon.
 4. The method ofclaim 1, wherein: the target location point comprises a marked locationpoint; the indication icon of the target location point comprises athird icon indicating the marked location point; and the displaying thedistance information corresponding to the indication icon of the targetlocation point in the scene picture of the virtual scene comprises:displaying the third icon in an orientation display region in the scenepicture of the virtual scene, a location of the third icon in theorientation display region indicating a direction of the marked locationpoint relative to the current controlled object; and displaying thedistance information corresponding to the third icon.
 5. The method ofclaim 4, wherein the method further comprises: in response to receivingan operation of unfolding a mini-map, presenting a map interface todisplay a full map of the virtual scene; displaying a fourth icon in themap interface, the fourth icon indicating a location of the markedlocation point in the full map; and displaying the distance informationcorresponding to the fourth icon.
 6. The method of claim 1, wherein thedisplaying the distance information corresponding to the indication iconof the target location point in the scene picture of the virtual scenecomprises: displaying the distance information at a specified locationaround the target location point in a text form or a graph form in thescene picture of the virtual scene.
 7. The method of claim 6, whereinthe specified location around the target location point is next to left,right, top, or bottom of the target location point.
 8. The method ofclaim 1, wherein the method further comprises: obtaining a target sizeof the indication icon of the target location point according to thedistance information; and adjusting a size of the indication icon of thetarget location point to the target size.
 9. The method of claim 1,wherein the displaying the distance information corresponding to theindication icon of the target location point in the scene picture of thevirtual scene comprises: in response to a distance display conditionbeing met, displaying the distance information corresponding to theindication icon of the target location point in the scene picture of thevirtual scene, the distance display condition comprising at least oneof: the current controlled object being located in a second specifiedregion in the virtual scene, the distance between the target locationpoint and the current controlled object being greater than a distancethreshold, the target location point being located within a viewingangle range of the current controlled object, or the target locationpoint being located outside the scene picture of the virtual scene. 10.The method of claim 1, wherein the distance between the target locationpoint and the current controlled object is a linear horizontal distanceor a linear three-dimensional spatial distance.
 11. The method of claim1, wherein the method further comprises: selecting the target locationpoint from location points base on indication icons corresponding to thelocation points.
 12. A terminal, comprising: a memory operable to storeprogram code; and a processor operable to read the program code andconfigured to: obtain location information of a target location point ina virtual scene, the target location point comprising a location pointat which an indication icon exists in a scene picture of the virtualscene, and the scene picture being a picture of the virtual scene viewedfrom a viewing angle of a current controlled object; obtain distanceinformation according to the location information of the target locationpoint, the distance information indicating a distance between the targetlocation point and the current controlled object; and display thedistance information corresponding to the indication icon of the targetlocation point in the scene picture of the virtual scene.
 13. Theterminal of claim 12, wherein: the target location point comprises alocation point at which a specified virtual object is located; theindication icon of the target location point comprises a first iconindicating the specified virtual object; and the processor is configuredto: display the first icon in a straight line direction of the specifiedvirtual object relative to the current controlled object in the scenepicture of the virtual scene; and display the distance informationcorresponding to the first icon.
 14. The terminal of claim 12, wherein:the target location point comprises a closest boundary point, theclosest boundary point being a location point that is closest to thecurrent controlled object among region boundary points, the regionboundary points being location points on a boundary of a first specifiedregion in the virtual scene, and the current controlled object beinglocated outside the first specified region; the indication icon of thetarget location point comprises a second icon indicating a relativelocation between the current controlled object and the first specifiedregion; and the processor is configured to: display the second icon on aboundary of a mini-map in the scene picture of the virtual scene, alocation of the second icon on the boundary of the mini-map indicating adirection of the closest boundary point relative to the currentcontrolled object; and a second information display unit, configured todisplay the distance information corresponding to the second icon. 15.The terminal of claim 12, wherein: the target location point comprises amarked location point; and the indication icon of the target locationpoint comprises a third icon indicating the marked location point; andthe processor is configured to: display the third icon in an orientationdisplay region in the scene picture of the virtual scene, a location ofthe third icon in the orientation display region indicating a directionof the marked location point relative to the current controlled object;and display the distance information corresponding to the third icon.16. The terminal of claim 15, wherein the processor is furtherconfigured to: present a full map of the virtual scene in response toreceiving an operation of unfolding a mini-map of the virtual scene; anddisplay a fourth icon in the full map, the fourth icon indicating alocation of the marked location point in the full map; and display thedistance information corresponding to the fourth icon.
 17. The terminalof claim 12, wherein the processor is configured to display the distanceinformation at a specified location around the target location point ina text form in the scene picture of the virtual scene.
 18. The terminalof claim 12, wherein the processor is further configured to: obtain atarget size of the indication icon of the target location pointaccording to the distance information; and adjust a size of theindication icon of the target location point to the target size.
 19. Theterminal of claim 12, wherein the processor is configured to: inresponse to a distance display condition being met, display the distanceinformation corresponding to the indication icon of the target locationpoint in the scene picture of the virtual scene; and wherein thedistance display condition comprises at least one of: the currentcontrolled object being located in a second specified region in thevirtual scene, the distance between the target location point and thecurrent controlled object being greater than a distance threshold, thetarget location point being located within a viewing angle range of thecurrent controlled object, or the target location point being locatedoutside the scene picture of the virtual scene.
 20. A product including:machine-readable media other than a transitory signal; and instructionsstored on the machine-readable media, the instructions configured to,when executed, cause a machine to: obtain location information of atarget location point in a virtual scene, the target location pointcomprising a location point at which an indication icon exists in ascene picture of the virtual scene, and the scene picture being apicture of the virtual scene viewed from a viewing angle of a currentcontrolled object; obtain distance information according to the locationinformation of the target location point, the distance informationindicating a distance between the target location point and the currentcontrolled object; and display the distance information corresponding tothe indication icon of the target location point in the scene picture ofthe virtual scene.